package com.tucue.dao;

import com.tucue.model.Park;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ParkMapper {
    int deleteByPrimaryKey(Integer parkid);

    int insert(Park record);

    int insertSelective(Park record);

    Park selectByPrimaryKey(Integer parkid);

    List<Park> selectAll();

    //更新园区
    int updatePark(Park record);

    int updateByPrimaryKey(Park record);

    //批量删除园区
    int deletePark(@Param(value = "id") int id, @Param(value = "visible") int visible);


    //批量删除园区
    int deleteParkBatch(@Param(value = "idlist") List<Integer> idlist, @Param(value = "visible") int visible);

    //批量修改园区状态
    int updateParkStatusBatch(@Param(value = "idlist") List<Integer> idlist, @Param(value = "status") int visible);
}